package com.xncoding.aop.model;

import com.fasterxml.jackson.annotation.JsonView;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    @JsonView(UserView.Basic.class)
    private Long id ;
    @JsonView(UserView.Basic.class)
    private String username ;
    @JsonView(UserView.Full.class)
    private String password ;
    @JsonView({UserView.WithoutPassword.class, UserView.Full.class})
    private String idNo ;
}
